/*!
 * SPDX-License-Identifier: Apache-2.0
 *
 * The OpenSearch Contributors require contributions made to
 * this file be licensed under the Apache-2.0 license or a
 * compatible open source license.
 *
 * Modifications Copyright OpenSearch Contributors. See
 * GitHub history for details.
 */

/**
 * 1. Using specificity to override panel shadow
 * 2. Prevent really long input from overflowing the container.
 */
.ouiComboBoxOptionsList {
  // Remove transforms from popover panel
  transform: none !important; // sass-lint:disable-line no-important
  top: 0;

  &.ouiPopover__panel-isAttached.ouiComboBoxOptionsList--top { /* 1 */
    @include ouiBottomShadowFlat;
  }
}

.ouiComboBoxOptionsList__empty {
  @include ouiTextBreakWord; /* 2 */
  padding: $ouiSizeS;
  text-align: center;
  word-wrap: break-word;
}

.ouiComboBoxOptionsList__rowWrap {
  padding: 0;
  max-height: 200px; // Also used/set in the JS file
  overflow: hidden;

  > div { // Targets the element for FixedSizeList that doesn't have a selector
    @include ouiScrollBar;
  }
}
